package com.seari.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.seari.pojo.FlowMajor;
import com.seari.pojo.RepairPlanData;
@Mapper
public interface FlowLinkMapper {

	int addFlowLinkList(List<FlowMajor> fmList);

	String queryFlowByfidAndFlid(@Param("faultId")String faultId,@Param("flowLinkId") String flowLinkId);

	String queryFaultContent(@Param("faultId")String faultId);

	Integer deleteFlowByFlowLinkId(@Param("faultId")String faultId,@Param("majorId") String majorId);

	//添加抢修方案
	Integer addRepairPlan(RepairPlanData rpd);

	//查询抢修方案
	String queryRepairPlan(@Param("faultId")String faultId, @Param("tag")String tag ,@Param("flowLinkId")String flowLinkId);
	
	//删除抢修方案
	void deleteRepairPlanByFlowLinkId(@Param("faultId")String faultId, @Param("tag")String tag,@Param("flowLinkId")String flowLinkId);
	
	//修改抢修方案
	int updateRepairPlan(RepairPlanData rpd);

	/**
	 * 删除总流程中分支流程
	 * @param faultId
	 * @param majorId
	 */
	void deleteBranchFlowByFaultLinkId(@Param("faultId")String faultId, @Param("majorId")String majorId);

	int addFlowMajor(FlowMajor fm);

}
